﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Reflection;
using System.Threading;
using System.Windows;
using System.Data;

namespace LxCFD
{
    public class IndexNumber
    {
        public IndexNumber(int startCellID, int endCellID, int startFaceID, int endFaceID)
        {
            CellIDs.Start = startCellID;
            CellIDs.End = endCellID;
            FaceIDs.Start = startFaceID;
            FaceIDs.End = endFaceID;
        }
        public void Set(int startCellID, int endCellID, int startFaceID, int endFaceID)
        {
            CellIDs.Start = startCellID;
            CellIDs.End = endCellID;
            FaceIDs.Start = startFaceID;
            FaceIDs.End = endFaceID;
        }
        public IndexRecorder CellIDs;
        public IndexRecorder FaceIDs;
        public override string ToString()
        {
            return "Cells:" + CellIDs.Start + "~" + CellIDs.End + "  Faces:" + FaceIDs.Start + "~" + FaceIDs.End;
        }
        public void Print()
        {
            Console.WriteLine($"{ToString()};cell count {CellIDs.GetCount()};face count {FaceIDs.GetCount()}");
        }

    }
}
